package com.twu.biblioteca;

import java.io.PrintStream;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Thoughtworker
 * Date: 8/23/13
 * Time: 9:56 AM
 * To change this template use File | Settings | File Templates.
 */
public class MovieLibrary {

    private PrintStream printStream;
    private List<Movie> movieList;

    public MovieLibrary(PrintStream printStream, List<Movie> movieList) {
        this.printStream = printStream;
        this.movieList =movieList;
    }

    public void printAllMovies() {
       for(Movie movie:movieList)  {
        printStream.println(movie.getDescription());
       }
    }

    public void addMovie(Movie movie) {
        movieList.add(movie);

    }
}
